package com.chengqs.mapper;

import com.chengqs.pojo.DTO.MoviePageQueryDTO;
import com.chengqs.pojo.entity.Movie;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Select;

public interface MovieMapper {

    @Select("select * from movie where name like concat('%', #{name}, '%')")
    Page<Movie> pageQuery(MoviePageQueryDTO pageQuery);

    @Select("select * from movie where id=#{id}")
    Movie selectById(Integer id);
}
